<template>
    <template v-if="checkPermi(permi)">
        <slot />
    </template>
</template>

<script setup lang="ts">
import { defineProps } from 'vue';
import { checkPermi } from '@/utils/ruoyi';

defineProps<{
    permi: string[];
}>();
</script>
